home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / bbs / anti143.zip / ANTIAD.DOC < prev    next >
Text File  |  1997-05-05  |  27KB  |  602 lines

  1.  
  2.      ┌──────────┬───────────┐
  3.      │   BBS    ┼           │
  4.      │   ╓───╖  │ ╓         │                   AntiAd
  5.      │   ║   ║  ┼ ║         │
  6.      │   ╟───╢ ╓┼─║ ╓──     │                Version 1.43
  7.      ├┼──╫─┼─╫─╫■─╫─╨┼─╥───┼┤
  8.      │   ╙   ╙ ╙┼─╜ ───╜    │    (c) Copyright 1997 - ZT-Technologies
  9.      │          ┼           │
  10.      └──────────┴───────────┘
  11.  
  12.                     Techical Support:
  13.                      Herbert Bushong
  14.                      Blackbeard's BBS
  15.                      318-468-3385   (V34+)
  16.  
  17.  
  18.  
  19. ┌────────────────────┐
  20. │  1. Introduction:  │
  21. └────────────────────┘
  22.  
  23. AntiAd was developed due to recent developments in BBS ad files and their
  24. associated headaches.  The asinine sysops who insist on putting this excess
  25. baggage into downloadable archives at the expense of other sysops' disk space
  26. are getting more creative and annoying.
  27.  
  28. By slightly modifying their BBS ad file, perhaps adding spaces to the end of
  29. the file or stamping the time and date into the BBS ad, they were previously
  30. undetectable (until the BBS ad was added to a database).  Not so with AntiAd.
  31.  
  32.  
  33. ┌──────────────────────────┐
  34. │  2. Features of AntiAd:  │
  35. └──────────────────────────┘
  36.  
  37.       ∙ Native versions for both 16-bit DOS and 32-bit OS/2!  DOS version is
  38.         fully OS/2, DESQview and Windows aware, including time slice releasing.
  39.       ∙ Identifies BBS ads using conventional database algorithms for files
  40.         that are static (such as .EXE files created by TheDraw).  This method
  41.         of detection is extremely fast and 100% accurate.
  42.       ∙ Includes a BBS ads maintenance function so sysops can update their BBS
  43.         ads CRC database in real time.
  44.       ∙ Identifies BBS ads by filename, allowing detection of 0-byte BBS
  45.         ads.
  46.       ∙ Identifies BBS ads using a new keyword algorithm for files that are
  47.         constantly changing.  This method of detection is slower and can be
  48.         less accurate depending upon how well the keywords are selected by the
  49.         sysop.
  50.       ∙ Up to 100/300 (DOS/OS/2) keyword sets of 5 to 10 keywords each can be
  51.         configured by the sysop.  (These are arbitrary limits and can be
  52.         raised, if necessary; they seemed like good starting points).
  53.       ∙ AntiAd can execute another program as a child process, allowing upload
  54.         processors that only execute 1 file checker (virus checker) to use
  55.         AntiAd *and* another file checker.
  56.       ∙ Runs as a file tester in most any upload processing utility, such as
  57.         UpLoadProcessor, Ziplab, ExzTest, etc.
  58.       ∙ Detected BBS ads are removed from the files on disk before being
  59.         repacked by the upload processing utility.  They may be stored in a
  60.         subdirectory for subsequent review by the user (user-selectable).
  61.       ∙ AntiAd can generate list files to be passed to an archiver, allowing
  62.         removal of BBS ad files without unpacking the archive.  This requires
  63.         proper handling by the upload processing utility or batch file.
  64.       ∙ User-selectable process logging to a disk file.
  65.       ∙ Written completely in C for optimal speed, using Watcom C/C++ 11.0.
  66.  
  67.  
  68. ┌────────────────────────────────────────────────────────┐
  69. │  3. Files Included in the AntiAd Distribution Archive  │
  70. └────────────────────────────────────────────────────────┘
  71.  
  72.         ANTIAD.EXE      BBS ad detection and removal program (16-bit DOS).
  73.         ANTIAD2.EXE     BBS ad detection and removal program (32-bit OS/2).
  74.         ANTIAD.DB       BBS ads database file.
  75.         NAMES.LST       BBS ads name list file.
  76.         ANTIAD.DOC      This file.
  77.         SAMPLE.CFG      Sample configuration file.
  78.         CHK_ADS.BAT     Main batch file for mass archive BBS ad removal.
  79.         CHK_ADS2.BAT    Secondary batch file for mass archive BBS ad removal.
  80.         SUPPORT.DOC     List of authorized support sites for my shareware.
  81.         HISTORY.DOC     AntiAd revision history in reverse order.
  82.         REGISTER.FRM    Registration form for AntiAd and other software.
  83.         FILE_ID.DIZ     Internal description file.
  84.  
  85. When you unzip the distribution archive, you should see my PKZIP authenticity
  86. verification stamp, and a '-AV' after every file in the archive:
  87.  
  88.   #PNP757
  89.   ZT Technologies
  90.  
  91. If there are any files missing or added, or the -AV stamp is missing, the
  92. archive has been tampered with.  It would be advisable to call 
  93. one of the support sites listed in the UPPORT.DOC file for the latest 
  94. version of AntiAd.
  95.  
  96.  
  97. ┌───────────────────────────┐
  98. │  4. Program Requirements  │
  99. └───────────────────────────┘
  100.  
  101. To the best of my knowledge, this program will run on most any machine capable
  102. of running a BBS package.  My BBS setup was PCBoard 15.2/10M running under
  103. DESQview on a LANtastic network, but other sysops that I have been in contact
  104. with have successfully implemented AntiAd on a wide variety of hardware.
  105.  
  106. AntiAd requires DOS 3.x and higher or OS/2 2.0 and higher, as it uses DOS
  107. SHARE-compatible file reads and writes.  AntiAd's memory requirements are very
  108. small (about 80K or so, plus the CRC database and keyword memory allocated).  A
  109. hard disk is required (and not very many BBSes don't have them) so it goes
  110. without saying (although I did anyway; someone is bound to ask... <g>).
  111.  
  112.  
  113. ┌───────────────────┐
  114. │  5. Registration  │
  115. └───────────────────┘
  116.  
  117. AntiAd is not free; nor is AntiAd crippled to force registration.  AntiAd is
  118. fully functional, and will always remain so.  The only variation with the
  119. registered copies is no time delay and beg message.
  120.  
  121. Why register?  Besides a clean conscience, you will get a registration code
  122. that will work for all future versions of AntiAd, and will remove the delay and
  123. message at the end of execution.
  124.  
  125. The registration fee for your unique key is $18 for hobbyist BBSes.  The
  126. registration fee for commercial BBSes, defined if you run your BBS in the
  127. course of a commercial business or for profit (e.g. more than 10 nodes), is
  128. $25.  Refer to the file REGISTER.FRM for all registration options.  Please
  129. print the file REGISTER.FRM and fill it out.  You can print out the form by
  130. issuing the following command from the DOS prompt:
  131.  
  132.         TYPE REGISTER.FRM > PRN
  133.  
  134.  
  135. ┌───────────────────────────────────────┐
  136. │  6. License, Warranty and Disclaimer  │
  137. └───────────────────────────────────────┘
  138.  
  139. I'll keep this part short and sweet, and dispense with the legal-ese:
  140.  
  141.         License: You are allowed to use AntiAd for 30 days, after which you
  142.            must either register AntiAd or stop using it completely.
  143.            Decompiling, disassembly or any other form of reverse-engineering
  144.            AntiAd for any purpose is prohibited.  AntiAd registration is a
  145.            license for your use of AntiAd; I retain ownership of the software.
  146.            A single registration applies to a single BBS system, regardless of
  147.            the number of computers used in the system.  If you run two or more
  148.            distinct BBS systems on the same computer (with different names),
  149.            you require two or more AntiAd registrations.  AntiAd registrations
  150.            are not transferrable; you cannot sell your registration to another
  151.            person.
  152.  
  153.         Warranty: There isn't one.  The only thing I'll guarantee is that
  154.            AntiAd will take up disk space, and will disappear when deleted.
  155.  
  156.         Disclaimer: I'm not responsible for anything bad that happens.  AntiAd
  157.            works here, but I cannot be held responsible for it not working on
  158.            your computer or doing any damage to hardware or software.
  159.  
  160. If these aren't agreeable with you, then the best thing to do is delete AntiAd
  161. right now.  I'll do my best to help any user (registered or not) that wants to
  162. use AntiAd, and I'll act on bug reports quickly, but I simply cannot and will
  163. not be responsible for anything bad, like lost data, disk crashes, or whatever
  164. else you can think of.
  165.  
  166.  
  167. ┌───────────────────┐
  168. │  7. Installation  │
  169. └───────────────────┘
  170.  
  171. GENERAL INSTALLATION:
  172. ─────────────────────
  173. Make a subdirectory on your hard drive.  For the purposes of this document,
  174. we'll call it "C:\ANTIAD".  Unarchive the AntiAd distribution archive into this
  175. subdirectory. You've more than likely already made it this far, if you're
  176. reading this file. <grin>
  177.  
  178. The AntiAd system opens a few files at once for various reasons.  I would
  179. recommend that you have a minimum of FILES=30 per node in your system
  180. CONFIG.SYS file for a single-node system, since AntiAd is run in conjunction
  181. with your BBS and upload processing software.
  182.  
  183. If you are running under a DOS network or a multitasking operating system, you
  184. should already have DOS's SHARE.EXE loaded.  You must have SHARE loaded in
  185. order to take advantage of the file sharing and locking methods used by the
  186. AntiAd programs to prevent data loss.  (If you are running a single-node system
  187. without a multitasker, SHARE is not needed).
  188.  
  189. Edit the configuration file to suit your needs.  Proper configuration will
  190. require you to refer to this section, the previous section and the section
  191. titled "Configuration", which has an in-depth explanation of each configuration
  192. parameter and its function.  It would probably be wise to fire up your printer
  193. for this document.
  194.  
  195. Note that for the AntiAd program, you can obtain a limited program syntax
  196. screen simply by executing the program with the -? (help) parameter.
  197.  
  198. INSTALLATION INTO YOUR UPLOAD PROCESSOR:
  199. ────────────────────────────────────────
  200. AntiAd is designed to operate on a subdirectory of files that have already been
  201. extracted by the upload handling system.  The best application for AntiAd is to
  202. be executed as a file test utility, similar to a virus-scanning program, since
  203. at that point in time the files are already extracted from the archive being
  204. processed.  Depending upon how your upload processor operates, the command
  205. lines can be different.
  206.  
  207.     * NOTE: If your upload processor is limited to 1 file checker, add AntiAd
  208.             into your processor's configuration, and then configure AntiAd to
  209.             execute your file/virus checker using the CHK_CMD_LINE parameter.
  210.  
  211. If your upload processor executes the file testers from the directory where the
  212. files are located (this is how the ULP programs operates), the command line is
  213. simply:
  214.  
  215.     D:\ANTIAD\ANTIAD.EXE -Cd:\antiad\antiad.cfg
  216.  
  217. If your upload processor DOES NOT execute the file testers from the directory
  218. where the files are located, and passes a filespec to the program (this is how
  219. ExzTest works), the command line is:
  220.  
  221.     D:\ANTIAD\ANTIAD.EXE -Cd:\antiad\antiad.cfg -Pd:\path\*.*
  222.  
  223. The '-P' parameter defines to AntiAd where to find the files. Note that it will
  224. accept either a path (e.g. 'C:\TEMP\') or a filespec (e.g. 'C:\TEMP\*.*'); in
  225. other words, the "*.*" is superfluous.  Regardless of the filespec, AntiAd will
  226. check all files in the path passed to it.  This is to allow the highest level
  227. of compatibility with all upload processing utilities.
  228.  
  229. If you find yourself crunched for command-line space in your upload processing
  230. utility, the '-C' may be omitted in favor of using an environment variable
  231. (named "ANTIAD_CFG") to tell AntiAd where to find it's configuration file.  To
  232. do this, add the following line to your AUTOEXEC.BAT file:
  233.  
  234.     set ANTIAD_CFG=c:\antiad\antiad.cfg
  235.  
  236. while changing the filespec as necessary to match the name and location of your
  237. AntiAd configuration file.
  238.  
  239. If your upload processing routine is capable of executing a command after each
  240. archive has been processed, you can use the list-file approach to removing BBS
  241. ads from the archive.  This will guarantee that the ad files are removed, even
  242. in -AV protected archives. If you call AntiAd with the following command-line:
  243.  
  244.     ANTIAD.EXE -Cd:\antiad\antiad.cfg -Pd:\path\*.* -Ld:\antiad\ad.lst
  245.  
  246. You can then execute the following archiver statements to remove the ads from
  247. the compressed archive:
  248.  
  249.     ARJ d d:\path\archive.arj !d:\antiad\ad.lst
  250.     LHA d d:\path\archive.arj @d:\antiad\ad.lst
  251.     PAK d d:\path\archive.arj @d:\antiad\ad.lst
  252.     PKPAK -d d:\path\archive.zip @d:\antiad\ad.lst
  253.     PKZIP -d d:\path\archive.zip @d:\antiad\ad.lst
  254.  
  255. Some notes on the list-file approach: if AntiAd finds no BBS ads, it will NOT
  256. create a BBS ads list file and will exit with an errorlevel you define in
  257. NO_AD_ERRLEV in the configuration file.  If it finds one or more BBS ads, it
  258. WILL create the file and exit with the errorlevel defined as AD_ERRLEV.
  259. (AntiAd will not run in ULP using list-file mode; use the standard mode of
  260. operation for AntiAd with ULP.)
  261.  
  262.  
  263. ┌────────────────────┐
  264. │  8. Configuration  │
  265. └────────────────────┘
  266.  
  267. The sample configuration file included in the distribution archive is heavily
  268. commented, but some additional information is provided below:
  269.  
  270. LOG_FILE
  271.     All of the AntiAd programs will write process and error information to a
  272.     log file, if desired.  This is the path/filename of the log file for AntiAd
  273.     to record its activities.  Comment out if you don't want any disk logging.
  274.  
  275. STORAGE_DIR
  276.     If you want AntiAd to use a specific directory for storage of BBS ads
  277.     detected and removed from archives, enter the full pathname (including the
  278.     trailing backslash).  If you do not want the file saved for later
  279.     inspection, comment it out.  I would not recommend using a RAM disk, since
  280.     the files would be lost when the system is rebooted or powered down.  Note
  281.     that this will default CRC_DISP and KEYWORD_DISP to DELETE.
  282.  
  283. NO_AD_ERRLEV
  284.     The errorlevel that AntiAd is to return to DOS if no BBS ads were found by
  285.     AntiAd while processing the subdirectory specified.  If this parameter or
  286.     the AD_ERRLEV parameter is commented out, then it will default to 0, since
  287.     most upload processors assume non-zero errorlevels to be program execution
  288.     errors, not information.  This value must be between 0 and 255, inclusive.
  289.  
  290. AD_ERRLEV
  291.     The errorlevel that AntiAd is to return to DOS if one or more BBS ads were
  292.     found by AntiAd.
  293.  
  294. DB_DISP
  295.     This parameter defines how AntiAd dispositions files detected as BBS ads
  296.     via the CRC-32 signature method.  If you want AntiAd to delete the ad file,
  297.     enter DELETE or comment the line out; if you want AntiAd to store the ad
  298.     file in the storage directory (and delete it from the archive being
  299.     processed), enter STORE.  Note that for STORE to operate correctly, the
  300.     STORAGE_DIR parameter MUST be defined.
  301.  
  302. NAME_DISP
  303.     This parameter defines how AntiAd dispositions files detected as BBS ads
  304.     via the filename check. If you want AntiAd to delete the ad file, enter
  305.     DELETE; if you want AntiAd to store the ad file, enter STORE or comment the
  306.     line out.
  307.  
  308. KEYWORD_DISP
  309.     This parameter defines how AntiAd dispositions files detected as BBS ads
  310.     via the keyword algorithm. If you want AntiAd to delete the ad file, enter
  311.     enter DELETE; if you want AntiAd to store the file in the storage directory
  312.     (and delete it from the archive being processed), enter STORE or comment
  313.     the line out.
  314.  
  315. ADS_DB
  316.     The directory path and name for the BBS ads database.  This database can be
  317.     updated by the sysop by using the '-F' parameter of AntiAd (see section 10
  318.     of this document), freeing the sysop from being reliant on me to maintain
  319.     the ads database.  If you find a large number of new BBS ad files, please
  320.     upload them to my board for inclusion into my master ads database
  321.     distributed with AntiAd.  This database format is compatible with my
  322.     UpLoadProcessor (ULP) utility's BBS ads database.
  323.  
  324. NAME_LIST
  325.     The directory path and name for the BBS ads name list file.  This is a
  326.     ASCII text file with one 12 character filename per line.  Note that no
  327.     wildcards are permitted; this is by design to prevent accidental removal of
  328.     files by specifying something stupid like '*.AD'.  Note that only file
  329.     (less than a pre-determined number of bytes) will be checked by filename!
  330.  
  331. NAME_SIZE_LIMIT
  332.     This is the maximum size, in bytes, of files that will be filename tested.
  333.     As this is a potentially dangerous function (filename checking is hardly an
  334.     accurate means of identifying ads), it is recommended this be kept as small
  335.     as possible (no more than a few K).  It wouldn't be good to delete a 100K
  336.     executable from uploads by accident because it had the same name as some
  337.     dinky BBS ad.
  338.  
  339. KEYWORDS
  340.     The keyword sets (separated by commas) to search potential BBS ad files
  341.     for. Note that these keywords are case-sensitive!  If a potential ad file
  342.     contains ALL of the keywords or phrases, it will be dispositioned as a BBS
  343.     ad.  I suggest using the BBS name, area code and exchange, modem brand and
  344.     other key terms in their ads that seem static.  Between 5 and 10 keywords
  345.     are allowed per line; one line comprises a keyword set.  Furthermore, a
  346.     keyword set line may not be more than 128 characters long.  A maximum of
  347.     100 keyword sets may be defined. Note that BBS ad scanning time increases
  348.     with the number of keywords and keyword sets.
  349.  
  350. CHK_CMD_LINE
  351.     AntiAd is capable of executing another program before returning to the
  352.     upload processor.  If this is desired enter the command line to be executed
  353.     by AntiAd, otherwise, comment the line out.  Place the variable @FILE@
  354.     where the filespec is to be placed on the command line.  Obviously, the DOS
  355.     version of AntiAd can execute only DOS virus checkers and the OS/2 version
  356.     of AntiAd only OS/2 virus checkers.  * NOTE: If this option is used, AntiAd
  357.     will return the errorlevel returned by this program to the upload
  358.     processor, and will not use the NO_AD_ERRLEV or AD_ERRLEV settings.  This
  359.     is done for optimum compatibility with all upload processors.
  360.  
  361.  
  362. ┌──────────────────────────────┐
  363. │  9. Application Information  │
  364. └──────────────────────────────┘
  365.  
  366. ULP:
  367. ────
  368. The correct configuration setup for AntiAd within UpLoadProcessor is as a file
  369. checker, such as follows:
  370.  
  371.     Command #:  C:\ANTIAD\ANTIAD -Cc:\antiad\antiad.cfg
  372.     Successful errorlevel:  0
  373.  
  374. If you are running UpLoadProcessor 2.0 or higher, the additional switch "run in
  375. a window" can be set to either <Y>es or <N>o.  In some situations, such as
  376. running under a GUI environment, setting this to <N>o will yield improved
  377. performance.
  378.  
  379. In addition, ULP users should disable the integrated BBS ad checking, since
  380. AntiAd is more capable than ULP in detecting and removing BBS ads.  You may
  381. also remove the '-C' parameter if you choose to use the environment variable
  382. approach for defining the configuration file path.
  383.  
  384. EXZTEST:
  385. ────────
  386. The following is an excerpt from a message from Mike Cocke, outlining how
  387. he has installed AntiAd:
  388.  
  389.     ======================================================================
  390.     Packet: SALTAIR
  391.       Date: 12-10-92 (16:58)             Number: 7410
  392.       From: MIKE COCKE                   Refer#: 7192
  393.       Subj: EXZTEST AND ANTIAD             Conf: (3) Utility
  394.     ----------------------------------------------------------------------
  395.     SS> I have a question regarding ExzTest and ANTI-AD that you may be
  396.     SS> able to answer. Does ExzTest repack the archive after processing?
  397.     SS> Is it selective? Do I need to trigger it in some fashion?
  398.  
  399.     It repacks the archives if that config option has been set.
  400.  
  401.     SS> I have a user having a little difficulty with ExzTest and AntiAd,
  402.     SS> and I'm trying to help him. Got a copy of 2.22, and read the docs,
  403.     SS> but that part wasn't clear.
  404.  
  405.     2.22 has some problems, including a system hanger.  Stop by the Hacker
  406.     Central and grab XZT8MC.ZIP
  407.  
  408.     SS> Would you be willing to share how you implemented AntiAd into
  409.     SS> ExzTest? I'd like to document it in the AntiAd docs...
  410.  
  411.     Sure - in a nutshell, set 'rezip secondary archives' to on, and install
  412.     AntiAd as a virus tester.  The key is the first point.  If this isn't
  413.     set, removals won't matter.
  414.     ======================================================================
  415.  
  416. If you have any further questions, I would suggest contacting Mike Cocke and
  417. getting the most recent version of ExzTest from his board or Salt Air.
  418.  
  419. ZIPLAB:
  420. ───────
  421. Apparently, ZipLab will not support the operation of more than one file checker
  422. automatically.  Or at least, how to add more than one is not readily apparent
  423. in the documentation.  Therefore, configure AntiAd into ZipLab and your virus
  424. scanner into AntiAd's CHK_CMD_LINE parameter.  In this way, ZipLab will call
  425. AntiAd, AntiAd will call your virus checker, and then return to ZipLab.
  426.  
  427. GENERIC BATCH FILE:
  428. ───────────────────
  429. The following generic batch file (modeled after PCBTEST.BAT) will autodetect
  430. the compression format of the archive using ARCID (again, a utility written by
  431. me), unpack the archive, check it for ads, remove any ads found via the
  432. list-file method, scan the files for viruses, and then clean up.  It can easily
  433. be expanded and/or modified to suit your needs:
  434.  
  435.     @Echo off
  436.     cls
  437.  
  438.     if exist pcbpass.txt del pcbpass.txt
  439.     if exist pcbfail.txt del pcbfail.txt
  440.  
  441.     d:\arcid\arcid %1 arj lzh zip
  442.     if errorlevel 98 goto UNKNOWN
  443.     if errorlevel 5  goto ZIP_TESTING
  444.     if errorlevel 4  goto PAK_TESTING
  445.     if errorlevel 3  goto LZH_TESTING
  446.     if errorlevel 2  goto ARJ_TESTING
  447.     if errorlevel 1  goto ARC_TESTING
  448.  
  449.     Echo ERROR: ARCID critical error...please notify sysop! > pcbfail.txt
  450.     exit
  451.  
  452.     :UNKNOWN
  453.     Echo ERROR: Unknown file format! > pcbfail.txt
  454.     exit
  455.  
  456.     :ARC_TESTING
  457.     md testing
  458.     cd testing
  459.     pkunpak -r %1
  460.     if not errorlevel 0 goto UNPACK_ERROR
  461.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  462.     if exist d:\antiad\ad.lst pkunpak -d %1 @d:\antiad\ad.lst
  463.     goto SCAN
  464.  
  465.     :ARJ_TESTING
  466.     md testing
  467.     cd testing
  468.     arj e -y %1
  469.     if not errorlevel 0 goto UNPACK_ERROR
  470.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  471.     if exist d:\antiad\ad.lst arj d -y %1 !d:\antiad\ad.lst
  472.     goto SCAN
  473.  
  474.     :LZH_TESTING
  475.     md testing
  476.     cd testing
  477.     lha e /m1 %1
  478.     if not errorlevel 0 goto UNPACK_ERROR
  479.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  480.     if exist d:\antiad\ad.lst lha d /m1 %1 @d:\antiad\ad.lst
  481.     goto SCAN
  482.  
  483.     :PAK_TESTING
  484.     md testing
  485.     cd testing
  486.     pak e /wa %1
  487.     if not errorlevel 0 goto UNPACK_ERROR
  488.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  489.     if exist d:\antiad\ad.lst pak d %1 @d:\antiad\ad.lst
  490.     goto SCAN
  491.  
  492.     :ZIP_TESTING
  493.     md testing
  494.     cd testing
  495.     pkunzip -o %1
  496.     if not errorlevel 0 goto UNPACK_ERROR
  497.     d:\antiad\antiad -Cd:\antiad\antiad.cfg -Ld:\antiad\ad.lst
  498.     if exist d:\antiad\ad.lst pkzip -d %1 @d:\antiad\ad.lst
  499.     goto SCAN
  500.  
  501.     :SCAN
  502.     scan /a /nomem /nopause *.*
  503.     if not errorlevel 0 goto VIRUS_ERROR
  504.  
  505.     cd ..
  506.     echo y|del testing\*.*
  507.     rd testing
  508.     if exist d:\antiad\ad.lst del d:\antiad\ad.lst
  509.     Echo File passed all tests... > pcbpass.txt
  510.     exit
  511.  
  512.     :UNPACK_ERROR
  513.     echo y|del testing\*.*
  514.     rd testing
  515.     if exist d:\antiad\ad.lst del d:\antiad\ad.lst
  516.     Echo ERROR: File failed integrity test... > pcbfail.txt
  517.     exit
  518.  
  519.     :VIRUS_ERROR
  520.     echo y|del testing\*.*
  521.     rd testing
  522.     if exist d:\antiad\ad.lst del d:\antiad\ad.lst
  523.     Echo ERROR: File failed virus test... > pcbfail.txt
  524.     exit
  525.  
  526.  
  527. ┌────────────────────────┐
  528. │  10. Manual Operation  │
  529. └────────────────────────┘
  530.  
  531. In order for sysops to be able to 'keep up' with new ads produced by the weenie
  532. sysops who insert the @!&*#%$ things, AntiAd is capable of scanning a BBS ad
  533. file and updating the BBS ads with it's information.  Don't worry about
  534. duplication, as part of the process is to purge duplicate BBS ad info. The
  535. command-line syntax for this functions is:
  536.  
  537.     ANTIAD -Cantiad.cfg -Fbbs.ad
  538.  
  539. or:
  540.  
  541.     ANTIAD -Cantiad.cfg -Fd:\bbs_ads\*.*
  542.  
  543. where 'antiad.cfg' is the full path and filename for the AntiAd configuration
  544. file, and 'bbs.ad' is the path and filename for the BBS ad file(s) to be added
  545. to the BBS ads database.  Standard DOS wildcard characters are permitted for
  546. multiple file addition.  I suggest only adding executable or ANSI BBS ads to
  547. the database, since they are not easily changed by a sysop before insertion
  548. into an archive.
  549.  
  550. I would greatly appreciate your uploading of any new BBS ad files that you may
  551. collect over time to my BBS so I can update the master listing that I include
  552. with the AntiAd distribution archive.  Please refer to the top of this document
  553. for my BBS number.
  554.  
  555. The latest version of my BBS ads database is included in the distribution
  556. archive.  In order to add whatever new BBS ads information that may be
  557. contained, you can merge it with your current BBS database:
  558.  
  559.     ANTIAD -Cantiad.cfg -Mother.db
  560.  
  561. where 'antiad.cfg' is the full path and filename for the AntiAd configuration
  562. file, and 'other.db' is the path and filename for the other BBS ads datatbase
  563. to be merged with the master ads database.
  564.  
  565.  
  566. ┌────────────────────────────┐
  567. │  11. The Future of AntiAd  │
  568. └────────────────────────────┘
  569.  
  570. AntiAd will be supported as long as I'm in the BBSing business (which will be
  571. quite a while...once it's in your blood, you can never shake it <g>).  
  572.  
  573. Thanks for giving AntiAd a try!
  574.  
  575.  
  576. ┌────────────────────────────────┐
  577. │  Appendix A:  DOS Errorlevels  │
  578. └────────────────────────────────┘
  579.  
  580. The following is a list of the errorlevels than can be returned by AntiAd:
  581.  
  582.         Variable    Successful execution
  583.         Variable    Successful execution, BBS ad list file created
  584.         Variable    Successful execution, file checker errorlevel returned
  585.         99          Help screen (executing a program with no or an
  586.                         insufficient number of arguments)
  587.         100         Could not close all open files
  588.         101         Unknown command line parameter
  589.         102         Config file not found
  590.         103         Too many keywords in a keyword set
  591.         104         Too few keywords in a keyword set
  592.         105         Too many keyword sets defined
  593.         106         Keyword set line too long
  594.         110         Unable to allocate heap memory
  595.         111         Unable to open or lock disk logging file
  596.         114         Unable to open BBS ads database file
  597.         115         Invalid filename provided by user on command-line
  598.         116         Invalid path provided by user on command-line
  599.         117         Unable to open BBS ads name list file
  600.         120         Invalid BBS ad database format
  601.         200         Undefined error (internal to AntiAd program)
  602.